#coding=utf-8
"""
Author:朱燕珍
Time:2025/9/4 15:05
"""
from utiles.handle_conf import conf
from utiles.handle_requests import Send_Requests

class Cms_Login():
    def login(self):
        request = Send_Requests()
        url = conf.get_value('env','url')+'/cms/manage/loginJump.do'
        data = {'userAccount':conf.get_value('test_data','username'),
                'loginPwd':conf.get_value('test_data','pwd')}
        headers = conf.get_value('env','headers')
        response = request.send(method='post',url=url,data=data,headers=headers)
        return request
        # print(response.json())
# if __name__ == '__main__':
#     c=Cms_Login()
#     c.login()

